package Demo3;

import org.springframework.stereotype.Component;

@Component("Winter")
public class Sweater implements Clothes{
    public void wear(){
        System.out.println("Wearing Sweater!");
    }
}
